External Link Exists Method

Hi all,

I´ve a question concerning the external link behaviour. Is there any possibility to find out if an object contains an external link?

Thanks in advance
EA2412 - Thu Apr 08 07:04:41 EDT 2010

Re: External Link Exists Method
PDU - Thu Apr 08 09:25:57 EDT 2010

Hi,

look at DXL Help, chapter "ExternalLink"

I think you can find solutions.

Pierre

Re: External Link Exists Method
EA2412 - Thu Apr 08 09:35:41 EDT 2010

PDU - Thu Apr 08 09:25:57 EDT 2010
Hi,

look at DXL Help, chapter "ExternalLink"

I think you can find solutions.

Pierre

HI,

thanks for your hint. Looking to the help was my first idea but i couldn´t find any solution for that.

Re: External Link Exists Method
EA2412 - Thu Apr 08 09:41:42 EDT 2010

PDU - Thu Apr 08 09:25:57 EDT 2010
Hi,

look at DXL Help, chapter "ExternalLink"

I think you can find solutions.

Pierre

Hi,

thanks for the hint but there is no solution for the problem given in the help.

Re: External Link Exists Method
PDU - Thu Apr 08 10:16:12 EDT 2010

EA2412 - Thu Apr 08 09:41:42 EDT 2010
Hi,

thanks for the hint but there is no solution for the problem given in the help.

Hi,

I use menu Analysis/Wizard, and next Tools/Support Tools/Convert Layout DXL to Attribut DXL.
You can see code below (for outlinks).
You can modify data to display

/*
    This attribute DXL was generated on 08/04/10 16:08:17.
*/
 
// prevent dxl timeout dialog
pragma runLim, 0
 
Buffer bsz = create
 
void endAttributeDXL()
{
    if (!null obj && attrDXLName != "")
    {
        obj.attrDXLName = richText tempStringOf(bsz)
    }
 
    delete bsz
}
 
void display(string s)
{
    bsz += s
    bsz += "\n"
}
 
void displayRich(string s)
{
    bsz += s
    bsz += "\n"
}
 
//**********
 
// DXL generated by DOORS traceability wizard on 08 April 2010.
// Wizard version 2.0, DOORS version 9.1.0.2
pragma runLim, 0
void showOut(Object o, int depth) {
    Link l
    LinkRef lr
    ModName_ otherMod = null
    Module linkMod = null
    ModuleVersion otherVersion = null
    Object othero
    string disp = null
    string s = null
    string plain, plainDisp
    int plainTextLen
    int count
    bool doneOne = false
    if (depth == 1) {
        ExternalLink extLink
        doneOne = false
        for extLink in o->"" do {
            s = richText name(extLink)
            if (s == "") 
            displayRich("\\pard " " ")
            else
            displayRich("\\pard " s)
        }
    }
}
showOut(obj,1)
 
//**********
 
endAttributeDXL()

 


Pierre

 

Re: External Link Exists Method
Bosch - Sat Sep 24 03:21:38 EDT 2011

PDU - Thu Apr 08 10:16:12 EDT 2010

Hi,

I use menu Analysis/Wizard, and next Tools/Support Tools/Convert Layout DXL to Attribut DXL.
You can see code below (for outlinks).
You can modify data to display

/*
    This attribute DXL was generated on 08/04/10 16:08:17.
*/
 
// prevent dxl timeout dialog
pragma runLim, 0
 
Buffer bsz = create
 
void endAttributeDXL()
{
    if (!null obj && attrDXLName != "")
    {
        obj.attrDXLName = richText tempStringOf(bsz)
    }
 
    delete bsz
}
 
void display(string s)
{
    bsz += s
    bsz += "\n"
}
 
void displayRich(string s)
{
    bsz += s
    bsz += "\n"
}
 
//**********
 
// DXL generated by DOORS traceability wizard on 08 April 2010.
// Wizard version 2.0, DOORS version 9.1.0.2
pragma runLim, 0
void showOut(Object o, int depth) {
    Link l
    LinkRef lr
    ModName_ otherMod = null
    Module linkMod = null
    ModuleVersion otherVersion = null
    Object othero
    string disp = null
    string s = null
    string plain, plainDisp
    int plainTextLen
    int count
    bool doneOne = false
    if (depth == 1) {
        ExternalLink extLink
        doneOne = false
        for extLink in o->"" do {
            s = richText name(extLink)
            if (s == "") 
            displayRich("\\pard " " ")
            else
            displayRich("\\pard " s)
        }
    }
}
showOut(obj,1)
 
//**********
 
endAttributeDXL()

 


Pierre

 

Hello,

I was looking for how to check whether the current object have external links.i had found this soultion.
May i know what does the integer value depth means in the above script.

Thank you!

Regards,
Shruthi

Re: External Link Exists Method
llandale - Sat Sep 24 13:02:33 EDT 2011

Bosch - Sat Sep 24 03:21:38 EDT 2011
Hello,

I was looking for how to check whether the current object have external links.i had found this soultion.
May i know what does the integer value depth means in the above script.

Thank you!

Regards,
Shruthi

Depth? If your modules are linked A->B->C, the wizard will let you insert a layout in A looking for linked C values; in which case objects at depth level 1 (B objects) are considered but not displayed, but then are recursed to find objects at depth 2 (C objects), which are 'display'd.

The code you see is built for a depth 1 analysis (the standard), but the wizard generation code still uses the multi-depth code which it really doesn't need in this case. Notice the function is called with depth=1
.. showOut(obj,1)
so its as if it doesn't exist

  • Louie